package com.kly.user.db.dao;
import com.fqgj.common.base.BaseMapper;
import com.kly.user.db.entity.CustomersUserEntity;

import java.util.List;

/**
* User: yujianfu
* Date: 2024-06-03
* Time: 16:33:24.177
*/

public interface CustomersUserDao  extends BaseMapper<CustomersUserEntity> {
    /**
     * 获取自然人映射关系
     */
    CustomersUserEntity getCustomer(String userCode);

    List<CustomersUserEntity> getCustomers(List<String> userCodes);

    /**
     * 添加自然人与注册用户的映射关系
     */
    CustomersUserEntity addCustomersUser(String customerCode, String userCode);

    /**
     * 自然人数据合并
     */
    Integer moveToNewCustomer(String newCustomerCode, String oldCustomerCode);
}